<template>
  <div style="height: 100%">
    <!-- <router-view></router-view> -->

    <transition name="fade-transform" mode="out-in" >
        <router-view v-if="!$route.meta.keepAlive" :key="key" style="height:100%"></router-view>
    </transition>
    <transition name="fade-transform" mode="out-in" >
        <keep-alive  :key="key">
            <router-view  v-if="$route.meta.keepAlive"  style="height:100%"></router-view>
        </keep-alive>
    </transition>
  </div>
</template>

<script>
export default {
  computed: {
    key() {
      return this.$route.path;
    },
  },
};
</script>

<style lang="scss" scoped>
</style>